﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cxx.Entity;
using Cxx.IDAL;
using Cxx.IOC;

namespace Cxx.BLL
{
    public class StockRecord
    {
        private static readonly IStockRecordDal dal = IocManager.Instance.ResolveIntance<IStockRecordDal>();

        public static void Insert(StockRecordInfo info)
        {
            dal.Insert(info);
        }

        public static List<StockRecordInfo> Get(string receiver)
        {
            return dal.Get(receiver);
        }

        public static List<StockRecordInfo> GetListForPage(string condition, int pageIndex, int pageSize,
            out int recordCount)
        {
            return dal.GetListForPage(condition, pageIndex, pageSize, out recordCount);
        }

        public static List<StockRecordInfo> GetList(string condition)
        {
            return dal.GetList(condition);
        }
    }
}
